namespace VAdvantage.Model
{

/** Generated Model - DO NOT CHANGE */
using System;
using System.Text;
using VAdvantage.DataBase;
using VAdvantage.Common;
using VAdvantage.Classes;
using VAdvantage.Process;
using VAdvantage.Model;
using VAdvantage.Utility;
using System.Data;
/** Generated Model for RC_ViewColumn
 *  @author Jagmohan Bhatt (generated) 
 *  @version Vienna Framework 1.1.1 - $Id$ */
public class X_RC_ViewColumn : PO
{
public X_RC_ViewColumn (Context ctx, int RC_ViewColumn_ID, String trxName) : base (ctx, RC_ViewColumn_ID, trxName)
{
/** if (RC_ViewColumn_ID == 0)
{
SetRC_ViewColumn_ID (0);
SetRC_View_ID (0);
}
 */
}
public X_RC_ViewColumn (Ctx ctx, int RC_ViewColumn_ID, String trxName) : base (ctx, RC_ViewColumn_ID, trxName)
{
/** if (RC_ViewColumn_ID == 0)
{
SetRC_ViewColumn_ID (0);
SetRC_View_ID (0);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_RC_ViewColumn (Context ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_RC_ViewColumn (Ctx ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_RC_ViewColumn (Ctx ctx, IDataReader dr, String trxName) : base(ctx, dr, trxName)
{
}
/** Static Constructor 
 Set Table ID By Table Name
 added by ->Harwinder */
static X_RC_ViewColumn()
{
 Table_ID = Get_Table_ID(Table_Name);
 model = new KeyNamePair(Table_ID,Table_Name);
}
/** Serial Version No */
static long serialVersionUID = 27590160983083L;
/** Last Updated Timestamp 6/14/2011 12:44:26 PM */
public static long updatedMS = 1308035666294L;
/** AD_Table_ID=1000188 */
public static int Table_ID;
 // =1000188;

/** TableName=RC_ViewColumn */
public static String Table_Name="RC_ViewColumn";

protected static KeyNamePair model;
protected Decimal accessLevel = new Decimal(4);
/** AccessLevel
@return 4 - System 
*/
protected override int Get_AccessLevel()
{
return Convert.ToInt32(accessLevel.ToString());
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Context ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Ctx ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public override String ToString()
{
StringBuilder sb = new StringBuilder ("X_RC_ViewColumn[").Append(Get_ID()).Append("]");
return sb.ToString();
}
/** Set Field.
@param AD_Field_ID Field on a tab in a window */
public void SetAD_Field_ID (int AD_Field_ID)
{
if (AD_Field_ID <= 0) Set_Value ("AD_Field_ID", null);
else
Set_Value ("AD_Field_ID", AD_Field_ID);
}
/** Get Field.
@return Field on a tab in a window */
public int GetAD_Field_ID() 
{
Object ii = Get_Value("AD_Field_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set Description.
@param Description Optional short description of the record */
public void SetDescription (String Description)
{
if (Description != null && Description.Length > 50)
{
log.Warning("Length > 50 - truncated");
Description = Description.Substring(0,50);
}
Set_Value ("Description", Description);
}
/** Get Description.
@return Optional short description of the record */
public String GetDescription() 
{
return (String)Get_Value("Description");
}
/** Set RC_ViewColumn_ID.
@param RC_ViewColumn_ID RC_ViewColumn_ID */
public void SetRC_ViewColumn_ID (int RC_ViewColumn_ID)
{
if (RC_ViewColumn_ID < 1) throw new ArgumentException ("RC_ViewColumn_ID is mandatory.");
Set_ValueNoCheck ("RC_ViewColumn_ID", RC_ViewColumn_ID);
}
/** Get RC_ViewColumn_ID.
@return RC_ViewColumn_ID */
public int GetRC_ViewColumn_ID() 
{
Object ii = Get_Value("RC_ViewColumn_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set RC_View_ID.
@param RC_View_ID RC_View_ID */
public void SetRC_View_ID (int RC_View_ID)
{
if (RC_View_ID < 1) throw new ArgumentException ("RC_View_ID is mandatory.");
Set_ValueNoCheck ("RC_View_ID", RC_View_ID);
}
/** Get RC_View_ID.
@return RC_View_ID */
public int GetRC_View_ID() 
{
Object ii = Get_Value("RC_View_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set Sequence.
@param SeqNo Method of ordering elements;
 lowest number comes first */
public void SetSeqNo (int SeqNo)
{
Set_Value ("SeqNo", SeqNo);
}
/** Get Sequence.
@return Method of ordering elements;
 lowest number comes first */
public int GetSeqNo() 
{
Object ii = Get_Value("SeqNo");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
}

}
